﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vote.aspx.cs" MasterPageFile="~/Site.master" Inherits="splitthecheck.WebForm2" %>




<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style2
        {
            width: 300px;
            height: 700px;
            margin-left: 0px;
        }
        .style3
        {
            width: 627px;
        }
        .style4
        {
            width: 691px;
            height: 370px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <form runat="server">
    <div id="page" class="style3">

        <br />
        <br />
        <br />
        <br />
        <br />

    </div>
    <table class="style12">
        <tr>
            
            <td valign="top" class="style3">
               <div class="style4">
               <h2>
        Name<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
        State<asp:TextBox ID="TextBox1" runat="server" Height="26px" Width="127px"></asp:TextBox>
&nbsp; 
        </h2>
    <h2>
        City<asp:TextBox ID="TextBox2" runat="server" Height="26px" Width="128px"></asp:TextBox>
&nbsp;Zip<asp:TextBox ID="TextBox3" runat="server" Height="27px" Width="81px"></asp:TextBox>
    </h2>
    <h2>
        <asp:ListBox ID="ListBox1" runat="server" Height="58px" Width="439px" 
            DataSourceID="SqlDataSource1" DataTextField="rname" DataValueField="rname" 
            onselectedindexchanged="ListBox1_SelectedIndexChanged">
        </asp:ListBox>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:jatConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:jatConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM RESTAURANT" 
            onselecting="SqlDataSource1_Selecting"></asp:SqlDataSource>
    </h2>
    <p>
      This is where you vote for a restaurant. 
    </p>


    <asp:Button ID="splitButton" runat="server" onclick="splitButton_Click" 
        Text="Split" Width="89px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="antiSplitButton" runat="server" Text="Don't Split" 
        Width="87px" onclick="antiSplitButton_Click" />

    </div>
            </td>
            <td valign="top" class="style11">
               <img align="right" alt="veggie plate" class="style2" 
            src="images/img01vert.jpg" /></td>
        </tr>
    </table>
    



</form>


&nbsp;<script type="text/javascript">
    function show_confirm() {
        var r = confirm("Press a button");
        if (r == true) {
            alert("You pressed OK!");
        }
        else {
            alert("You pressed Cancel!");
        }
    }
</script>




</asp:Content>



